package com.qmq.app.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class UserInfo implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 用户ID
     */
    @TableId
    @NotNull(message = "用户ID不能为空")
    private Long userId;
    /**
     * 用户名
     */
    @NotBlank(message = "缺少用户名")
    @ApiModelProperty("用户名")
    private String userName;
    /**
     * 头像地址
     */
    @NotBlank(message = "缺少头像地址")
    @ApiModelProperty(value = "头像地址")
    private String header;
}
